package com.kuang.oop.demo05;

//在Java中，所有的类，都默认继承Object类
//Person 人：父类
public class Person {
    public Person() {
        System.out.println("Person无参构造器被调用");
    }

    //属性
    protected String name = "Person";
    protected int money = 10_0000_0000;

    //私有方法无法继承
    protected void print(){
        System.out.println("Person");
    }
}
